package com.eazy.lkv2.web.service.hotel.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.eazy.lkv2.core.annotation.ServiceAop;
import com.eazy.lkv2.web.entity.Room;
import com.eazy.lkv2.web.service.hotel.RoomService;
import com.rework.joss.persistence.convention.BaseDao;

@Service
public class RoomServiceImpl extends BaseDao<Room, Integer> implements RoomService {

	@Override
	public List<Map<String, Object>> select() {
		return sqlSessionTemplate.selectList(getMapperMethodId("select"));
	}

	@Override
	public List<Map<String, Object>> selectRoomByHotelId(String hotelId) {
		return sqlSessionTemplate.selectList(getMapperMethodId("selectRoomByHotelId"), hotelId);
	}

	@Override
	public List<Map<String, Object>> selectRoomById(String hotelId) {
		return sqlSessionTemplate.selectList(getMapperMethodId("selectRoomById"), hotelId);
	}

}
